package com.rongke.model;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.rongke.utils.DateJsonDeserializer;
import com.rongke.utils.DateJsonSerializer;
import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.List;

/**
 * @IndexGroup
 * @主页分组标签(index_group)
 * @version : Ver 1.0
 */
@TableName("index_group")
public class IndexGroup implements Serializable {
	@TableField(exist = false)
	private static final long serialVersionUID = 1L;


	/**
	 * @备注:主页分组标签id
	 * @字段:id BIGINT(19)
	 */
	@TableId(type = IdType.AUTO)
	private Long id;


	/**
	 * @备注:标题
	 * @字段:title VARCHAR(11)
	 */
	private String title;


	/**
	 * @备注:副标题描述
	 * @字段:subtitle VARCHAR(40)
	 */
	private String subtitle;


	/**
	 * @备注:父id
	 * @字段:pid BIGINT(19)
	 */
	private Long pid;


	/**
	 * @备注:图片url
	 * @字段:picture_url TEXT(65535)
	 */
	private String pictureUrl;


	/**
	 * @备注:分组标签所属产品线（0 蜜哆哆 1 蜜雅阁 2 品牌馆）
	 * @字段:group_type INT(10)
	 */
	private Integer groupType;


	/**
	 * @备注:某分组内排序序号
	 * @字段:sort INT(10)
	 */
	private Integer sort;

    /**
     * @备注:是否主页显示（0 不显示在主页 1 显示在主页）
     * @字段:is_homepage SMALLINT(5)
     */
    private java.lang.Integer isHomepage;


	public IndexGroup(){
	}

	public IndexGroup(
		Long id
	){
		this.id = id;
	}



	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return this.id;
	}


	public void setTitle(String title) {
		this.title = title;
	}

	public String getTitle() {
		return this.title;
	}


	public void setSubtitle(String subtitle) {
		this.subtitle = subtitle;
	}

	public String getSubtitle() {
		return this.subtitle;
	}


	public void setPid(Long pid) {
		this.pid = pid;
	}

	public Long getPid() {
		return this.pid;
	}


	public void setPictureUrl(String pictureUrl) {
		this.pictureUrl = pictureUrl;
	}

	public String getPictureUrl() {
		return this.pictureUrl;
	}


	public void setGroupType(Integer groupType) {
		this.groupType = groupType;
	}

	public Integer getGroupType() {
		return this.groupType;
	}


	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public Integer getSort() {
		return this.sort;
	}

    public Integer getIsHomepage() {
        return isHomepage;
    }

    public void setIsHomepage(Integer isHomepage) {
        this.isHomepage = isHomepage;
    }
}
